package com.boang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @TableName admin
 */
@TableName(value ="admin")
@Data
public class Admin implements Serializable {

    @TableId(type = IdType.AUTO)
    private int id;

    private String name;

    private String password;

    private Date gmtCreate;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<Integer> roleIds;
}